package com.flying.scorer.score.equity;

import com.flying.refdata.model.equity.EquityInfo;
import com.flying.scorer.model.ScorerInfo;
import com.flying.scorer.score.ScoreException;
import com.flying.utils.lang.IntUtil;

public abstract class AbstractEquityScorer implements EquityScorer {
    @Override
    public ScorerInfo getInfo() {
        ScorerInfo info = new ScorerInfo();
        info.setName(this.getClass().getSimpleName());
        return info;
    }

    @Override
    public double score(EquityInfo input) throws ScoreException {
        return score(IntUtil.getDate(System.currentTimeMillis()), input);
    }
}